#ifndef SELECTDEVICE_H
#define SELECTDEVICE_H

#include <QWidget>
#include <QString>

namespace Ui {
class SelectDevice;
}

class SelectDevice : public QWidget
{
    Q_OBJECT

public:
    explicit SelectDevice(QWidget *parent = 0);
    ~SelectDevice();
    QString ToStr(int number, int base, int size);

signals:
    void openDevice(int i);
    void SendSet(QByteArray ba);
    void openCali();

public slots:
    void com_rec(QString data_src);
    void info_set_send(QByteArray ba);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_4_clicked();

private:
    Ui::SelectDevice *ui;
    bool ok;
    int batNum;
    void creatListItem();

};

#endif // SELECTDEVICE_H
